<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">参数测点</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/project/indexManage/index_save">
    <input name="id"  style="display: none">
    <div class="modal-body">

        <div class="form-group">
            <label class="col-lg-3 control-label">编号</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="number" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">名称</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="name" />
            </div>
        </div>


        <div class="form-group">
            <label class="col-lg-3 control-label">适用对象</label>
            <div class="col-lg-6">
                <select class="form-control" name="object">
                    <option th:each="parameter:${objects}" th:value="${parameter.id}" th:text="${parameter.name}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">数据类型</label>
            <div class="col-lg-6">
                <select class="form-control" name="dateType">
                    <option th:each="parameter:${dataTypes}" th:value="${parameter.id}" th:text="${parameter.name}"
                            >
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">单位</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" name="unit" />
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">来源</label>
            <div class="col-lg-6">
                <select class="form-control" name="source">
                    <option th:each="parameter:${sources}" th:value="${parameter.id}" th:text="${parameter.name}">
                </select>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
//    //表单初始化
//    initCheck();
</script>